#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int n, m;
	scanf("%d", &n);
	m = n;
	for (int i = n; i > 0; i--) {
		for (int j = 0; j < 2 * i - 1; j++)
			printf("#");
		printf("\n");
		for (int a = 0; a < n - i + 1; a++)
			printf(" ");
	}
	return 0;
}